package org.example.netty.test.nio.netty.chat.bean;

import lombok.Data;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.example.netty.test.nio.netty.chat.common.MessageType;

/**
 * @author zp
 * @version 1.0
 * @description: RPC响应
 * @date 2023/5/30 19:05
 */
@Slf4j
@Data
@ToString(callSuper = true)
public class RpcResponse extends AbsMessageBase{
    /**
     * 响应ID
     */
    private String requestId;
    /**
     * 错误信息
     */
    private String error;
    /**
     * 返回的结果
     */
    private Object result;

    @Override
    public int getMessageType() {
        return MessageType.MESSAGE_TYPE_RPC_RESPONSE;
    }


}
